package ooday05;
/** static的演示*/
public class StaticDemo {
    public static void main(String[] args) {
        StaticVar o1=new StaticVar();
        o1.show();
        StaticVar o2=new StaticVar();
        o2.show();
        StaticVar o3=new StaticVar();
        o3.show();
        StaticVar o4=new StaticVar();
        o4.show();
        System.out.println(StaticVar.b);//常常通过类名点来访问
        StaticBlock p1=new StaticBlock();
        StaticBlock p2=new StaticBlock();
        StaticBlock p3=new StaticBlock();
        StaticBlock p4=new StaticBlock();
    }
}
